summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2024-01-21 20:08:58 +0100
committerGitHub <noreply@github.com>2024-01-21 20:08:58 +0100
commita3199401f4f3a005666618595c36ec63331e827d (patch)
treec6b21b463b1fcbc7999e6ec83aea772929dbe22c
parentMerge pull request #12728 from t895/sync-translations (diff)
parentservice: set: Don't allow invalid mii author id (diff)
downloadyuzu-a3199401f4f3a005666618595c36ec63331e827d.tar
yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.gz
yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.bz2
yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.lz
yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.xz
yuzu-a3199401f4f3a005666618595c36ec63331e827d.tar.zst
yuzu-a3199401f4f3a005666618595c36ec63331e827d.zip
-rw-r--r--src/core/hle/service/set/system_settings_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/set/system_settings_server.cpp b/src/core/hle/service/set/system_settings_server.cpp
index 87242ae68..2e5785fed 100644
--- a/src/core/hle/service/set/system_settings_server.cpp
+++ b/src/core/hle/service/set/system_settings_server.cpp
@@ -1038,6 +1038,11 @@ void ISystemSettingsServer::SetBluetoothEnableFlag(HLERequestContext& ctx) {
}
void ISystemSettingsServer::GetMiiAuthorId(HLERequestContext& ctx) {
+ if (m_system_settings.mii_author_id.IsInvalid()) {
+ m_system_settings.mii_author_id = Common::UUID::MakeDefault();
+ SetSaveNeeded();
+ }
+
LOG_INFO(Service_SET, "called, author_id={}",
m_system_settings.mii_author_id.FormattedString());